﻿using System;

using suanpan.API.Components.Config;
using suanpan.API.Components.Model;

namespace suanpan.API.Components.Providers
{
    public class ConfigConsumerProvider : IConsumerProvider
    {
        private static readonly ApiConsumerConfig _consumerConfig = ApiConsumerConfig.GetInstance();

        public ApiConsumer ConsumerGet(string consumerKey)
        {
            return _consumerConfig[consumerKey];
        }

    }
}
